package org.aom.litebean.module.base;

import org.operamasks.faces.component.grid.GridColumn;
import org.operamasks.faces.component.grid.SortDirection;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public abstract class CrudControllerSupportBean<T> {

	/**
	 * 关于日志的记录，这点不能少
	 */
	protected Logger logger = LoggerFactory.getLogger(getClass());

	/**
	 * 以下四个方法供给UIDataGrid去用，要在自己的controller中实现
	 */
	
	public abstract Object[] getElementsById(String[] ids);

	public abstract Object[] getElements();

	public abstract int getTotalCount();

	public abstract void sort(final GridColumn column,
			final SortDirection direction);
	
	
}
